package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface SysUserMapper {

    //根据用户名查询数据库表
    SysUser selectByUserName(@Param("userName") String userName);

    //用户条件分页查询接口
    List<SysUser> findByPage(SysUserDto sysUserDto);

    //2 用户添加
    void saveSysUser(SysUser sysUser);

    //3 用户修改
    void updateSysUser(SysUser sysUser);

    //4 用户删除
    void deleteById(@Param("userId") Long userId);

    //根据用户名查询用户
    SysUser findByUserName(@Param("userName") String userName);


}